package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: Doctor
 * Description:
 * date: 2020/5/28 0028 9:51:26
 *
 * @author 19036
 * @since JDK 1.8
 * 医生表（doctor）
 * 字段名	    属性	    约束	注释
 * id	        int	        主键	主键
 * name	        varchar(20)	非空	姓名
 * sex	        bit	        非空	性别
 * image	    varchar(255)		照片
 * education 	varchar(20)	非空	学历
 * skilled	    varchar(255)		擅长
 * intro	    varchar(255)		简介
 * level	    varchar(20)         职称（主治医师、普通...）
 * hdid	        int	        外键	医院科室关联表id
 */
public class Doctor implements Serializable {
    private int id;
    private String name;
    private int sex;
    private String image;
    private String education;
    private String skilled;
    private String intro;
    private String level;
    private Hospital hospital;
    private Division division;

    public Doctor() {
    }

    public Doctor(int id, String name, int sex, String image, String education, String skilled, String intro, String level, Hospital hospital, Division division) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.image = image;
        this.education = education;
        this.skilled = skilled;
        this.intro = intro;
        this.level = level;
        this.hospital = hospital;
        this.division = division;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getSkilled() {
        return skilled;
    }

    public void setSkilled(String skilled) {
        this.skilled = skilled;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Hospital getHospital() {
        return hospital;
    }

    public void setHospital(Hospital hospital) {
        this.hospital = hospital;
    }

    public Division getDivision() {
        return division;
    }

    public void setDivision(Division division) {
        this.division = division;
    }

    @Override
    public String toString() {
        return "Doctor{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", image='" + image + '\'' +
                ", education='" + education + '\'' +
                ", skilled='" + skilled + '\'' +
                ", intro='" + intro + '\'' +
                ", level='" + level + '\'' +
                ", hospital=" + hospital +
                ", division=" + division +
                '}';
    }
}
